package org.csu.mypetstore.service;

import org.csu.mypetstore.commonResponse.CommonResponse;
import org.csu.mypetstore.domin.Account;

public interface AccountService {
    CommonResponse<Account> getAccountByUsername(String username);


    CommonResponse<Account> getAccountByUsernameAndPassword(String username, String password);

    CommonResponse<Account> insertAccount(Account account);

    CommonResponse<Account> getAccountByEmail(String email);

    CommonResponse<Account> updateAccount(Account account);

    CommonResponse<Account> getAccountByPhone(String phone);

}
